/* 组件样式定义 */

/* 动画类 */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 文字大小类 */
.text-display-xl {
  font-size: 3rem;
  line-height: 1.1;
}

.text-display-2xl {
  font-size: 4rem;
  line-height: 1.1;
}

.text-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out forwards;
}

.text-body-xl {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* 布局类 */
.section-padding {
  padding: 5rem 0;
}

.bg-gradient-hero {
  background: linear-gradient(135deg, var(--gray-50), var(--primary-50), var(--secondary-50));
}

.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* 卡片样式 */
.card-feature {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-200);
}

/* 图标容器 */
.icon-container {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.icon-container:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

/* 装饰元素 */
.decoration-dot {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.decoration-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-400), var(--secondary-400));
  border-radius: 1px;
  margin-left: 0.5rem;
}

/* 轮播图样式 */
.hero-carousel .ant-carousel .ant-carousel-dots {
  bottom: 2rem;
}

.hero-carousel .ant-carousel .ant-carousel-dots li {
  width: 12px;
  height: 12px;
  margin: 0 6px;
}

.hero-carousel .ant-carousel .ant-carousel-dots li button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.hero-carousel .ant-carousel .ant-carousel-dots li.ant-carousel-dot-active button {
  background: white;
  transform: scale(1.2);
}

.custom-dots {
  bottom: 2rem !important;
}

.custom-dots li {
  width: 12px !important;
  height: 12px !important;
  margin: 0 6px !important;
}

.custom-dots li button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease !important;
}

.custom-dots li.ant-carousel-dot-active button {
  background: white !important;
  transform: scale(1.2) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .text-display-xl {
    font-size: 2rem;
  }
  
  .text-display-2xl {
    font-size: 2.5rem;
  }
  
  .text-section-title {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .card-feature {
    padding: 1.5rem;
  }
  
  .grid-responsive {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .text-display-xl {
    font-size: 1.75rem;
  }
  
  .text-display-2xl {
    font-size: 2rem;
  }
  
  .text-section-title {
    font-size: 1.75rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .card-feature {
    padding: 1.25rem;
  }
}

/* 特殊效果 */
.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 按钮增强样式 */
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  color: white;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
}

/* 加载状态 */
.loading-shimmer {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 无障碍增强 */
.focus-visible:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* 打印优化 */
@media print {
  .section-padding {
    padding: 1rem 0;
  }
  
  .card-feature {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  .btn-primary,
  .btn-secondary {
    background: var(--gray-800) !important;
    color: white !important;
  }
}